package com.example.administrator.kotiln.ui

import android.app.Activity
import android.os.Bundle
import android.view.View
import android.widget.TextView
import com.example.administrator.kotiln.R
import kotlinx.android.synthetic.main.activity_head.*

/**
 * Created by Administrator on 2017/8/23.
 */

class ColorActivity : Activity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_color)
        val tv_color = findViewById<View>(R.id.tv_color) as TextView
        tv_color.setTextColor(resources.getColor(R.color.tvs))
        tv_color.text = resources.getString(R.string.tv1)
        initView()
    }

    private fun initView() {
      back.setOnClickListener {
          finish()
      }
    }
}
